echo "backing nvim config"
rm -rfv ./nvim
mkdir ./nvim
cp -rfv ~/.config/nvim/* ./nvim/
echo "back nvim over"

echo "backing emacs config"
rm -rfv ./emacs
mkdir ./emacs
mkdir ./emacs/configs
mkdir ./emacs/snippets
cp -fv ~/.emacs.d/init.el ./emacs/
cp -rfv ~/.emacs.d/configs/* ./emacs/configs/
cp -rfv ~/.emacs.d/snippets/* ./emacs/snippets/
echo "back emacs over"

echo "backing archlinux os config"
rm -rfv ./linux/*
mkdir ./linux/pacman
cp -fv /etc/pacman.conf ./linux/pacman/
cp -rfv /etc/pacman.d ./linux/pacman/
echo "back archlinux os config"

echo "backing alacritty"
rm -rfv ./alacritty
cp -rfv ~/.config/alacritty ./
echo "back alacritty over"

echo "backing bspwm"
rm -rfv ./bspwm
cp -rfv ~/.config/bspwm ./
echo "back bspwm over"

echo "backing sxhkd"
rm -rfv ./sxhkd
cp -rfv ~/.config/sxhkd ./
echo "back sxhkd over"

echo "backing picom"
rm -rfv ./picom
cp -rfv ~/.config/picom ./
echo "back picom over"


echo "backing polybar"
rm -rfv ./polybar
cp -rfv ~/.config/polybar ./
echo "back polybar over"

